package com.js.admin.entity;

import com.js.common.entity.BizEntity;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @author： ygl
 * @date： 2018/11/02-14:40
 * @Description：
 * 角色和资源
*/
@NoArgsConstructor
@Data
@Table(name="base_resource_authority")
public class BaseResourceAuthority extends BizEntity {

    /**
     * 角色ID
     */
    @Column(name = "authority_id")
    private String authorityId;
    /**
     * 角色类型
     */
    @Column(name = "authority_type")
    private String authorityType;
    /**
     * 资源ID
     */
    @Column(name = "resource_id")
    private String resourceId;
    /**
     * 资源类型
     */
    @Column(name = "resource_type")
    private String resourceType;
    /**
     * 
     */
    @Column(name = "parent_id")
    private String parentId;
    /**
     * 
     */
    @Column(name = "path")
    private String path;
    /**
     * 
     */
    @Column(name = "description")
    private String description;
    /**
     * 类型
     */
    @Column(name = "type")
    private String type;
    /**
     * 租户Id
     */
    @Column(name = "tenant_id")
    private String tenantId;

    public BaseResourceAuthority(String authorityType, String resourceType) {
        this.authorityType = authorityType;
        this.resourceType = resourceType;
    }
}